import axios from '@/http/index';
/* 所有系统信息 */
export function changeOrganization() {
  return axios({
    url: '/monitor/details/changeOrganization',
    method: 'post'
  });
}
export function getCmbizCount(option: string) {
  return axios({
    url: '/monitor/cmbizCount/getCmbizCount',
    method: 'post',
    data: option
  });
}
export function getCmbizCount2(option: string) {
  return axios({
    url: '/monitor/cmbizCount/getCmbizResoureChangeCount',
    method: 'post',
    data: option
  });
}
export function getCmbizView(option: string) {
  return axios({
    url: '/monitor/cmbizCount/getCmbizView',
    method: 'post',
    data: option
  });
}
export function getCmbizView2(option: string) {
  return axios({
    url: '/monitor/cmbizCount/getCmbizResoureChangeView',
    method: 'post',
    data: option
  });
}
/* 查询列表-资源变更单查看详情 */
export function selectCmBizById(option: string) {
  return axios({
    url: '/monitor/cmbizorversionCount/selectCmBizById',
    method: 'post',
    data: option
  });
}
export function selectCmBizById2(option: string) {
  return axios({
    url: '/monitor/cmbizorversionCount/selectCmBizResoureChangeById',
    method: 'post',
    data: option
  });
}
/* 流程记录 */
export function pubflowlist(option: string) {
  return axios({
    url: '/monitor/count/pubflowlist',
    method: 'post',
    data: option
  });
}
/* 资源变更单导出获取文件名 */
export function exportCmBiz(option: string) {
  return axios({
    url: '/monitor/cmbizCount/exportCmBiz',
    method: 'post',
    data: option
  });
}
export function exportCmBiz2(option: string) {
  return axios({
    url: '/monitor/cmbizCount/exportCmBizResoureChange',
    method: 'post',
    data: option
  });
}
/* 导出文件 */
export function download(option: string) {
  return axios({
    url: '/monitor/count/download',
    method: 'get',
    params: option,
    responseType: 'blob'
  });
}
export function getCmBizBySysList(option: string) {
  return axios({
    url: '/monitor/cmbizCount/getCmBizBySysList',
    method: 'post',
    data: option
  });
}
export function getCmBizBySysList2(option: string) {
  return axios({
    url: '/monitor/cmbizCount/getCmBizResoureChangeBySysList',
    method: 'post',
    data: option
  });
}
/* 资源变更单系统汇总分类--导出 */
export function GetExportCmBizBySysList(option: string) {
  return axios({
    url: '/monitor/cmbizCount/exportGetCmBizBySysList',
    method: 'post',
    data: option
  });
}
export function GetExportCmBizBySysList2(option: string) {
  return axios({
    url: '/monitor/cmbizCount/exportGetCmBizResoureChangeBySysList',
    method: 'post',
    data: option
  });
}

